package com.neuedu.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.user.entity.Content;
import com.neuedu.user.entity.ContentPlus;
import com.neuedu.user.mapper.ContentMapper;

@Transactional
@Service
public class ContentServiceImpl implements ContentService{

	@Autowired
	 private ContentMapper dao;
	
	@Override
	public int addContent(Content u) {
		// TODO Auto-generated method stub
		return dao.addContent(u);
	}

	@Override
	public List<ContentPlus> getContent() {
		// TODO Auto-generated method stub
		return dao.getContent();
	}

	@Override
	public int deleteContent(Content u) {
		// TODO Auto-generated method stub
		return dao.deleteContent(u);
	}

	@Override
	public int updateContent(Content u) {
		// TODO Auto-generated method stub
		return dao.updateContent(u);
	}

}
